package srv

import (
	"fmt"
	"gctl/pkg"
	"github.com/spf13/cobra"
)

type TemplateData struct {
	ProjectName string
	ModuleName  string
}

func SrvRouter(cmd *cobra.Command, args []string) {

	app, err := cmd.Flags().GetString("app")
	if err != nil {
		fmt.Println(err)
		return
	}
	srv, err := cmd.Flags().GetString("srv")
	if err != nil {
		fmt.Println(err)
		return
	}

	pkg.FileInit(app, srv, "srv")
}
